package com.mcc.quartz.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 定时任务调度日志表 sys_job_log
 *
 * @author gxy
 */
@ApiModel("定时任务调度日志对象")
@Data
public class SysJobLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("日志ID")
    private Long jobLogId;

    @ApiModelProperty("任务名称")
    private String jobName;

    @ApiModelProperty("任务组名")
    private String jobGroup;

    @ApiModelProperty("调用目标字符串")
    private String invokeTarget;

    @ApiModelProperty("日志信息")
    private String jobMessage;

    @ApiModelProperty("执行状态（0正常 1失败）")
    private String status;

    @ApiModelProperty("异常信息")
    private String exceptionInfo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(exist = false)
    @ApiModelProperty("开始时间")
    private Date startTime;

    @TableField(exist = false)
    @ApiModelProperty("停止时间")
    private Date stopTime;

    @TableField(exist = false)
    @ApiModelProperty("开始时间")
    private String beginTime;

    @TableField(exist = false)
    @ApiModelProperty("结束时间")
    private String endTime;

}
